<%@ page import="java.net.URLEncoder" %><%--
  Created by IntelliJ IDEA.
  User: cos
  Date: 2022/3/11
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<ul>
    <c:forEach items="${fileList}" var="e">
        <li>
                <%--                ${e.key}------${e.value}--%>
            <a href="/file/download?file=${e.key}">${e.value}</a>
        </li>
    </c:forEach>

    <li>

        <%=URLEncoder.encode("C:\\Users\\cos\\Desktop\\a.txt","utf-8")%>
    </li>
</ul>
</body>
</html>
